package com.airlines.crewassignment.service.crewlocation;

import com.airlines.common.Page;
import com.airlines.crewassignment.entity.crewlocation.CrewBackup;
import java.util.List;

/**
 * @author xxxx
 * @date 2018/06/25 09:51:34
 * @company xxxx Airlines
 * @description 
 */
public interface CrewBackupService {

    /**
     * 添加 （返回主键ID）
     * @param crewBackup
     * @return
     */
    int insert(CrewBackup crewBackup);


    /**
     * 逻辑删除（将is_delete 标记为置为 1）
     * @param flightDate
     * @param pCode
     * @return
     */
    int deleteLogic(String flightDate,String pCode);


    /**
     * 修改
     * @param crewBackup
     * @return
     */
    int update(CrewBackup crewBackup);


    /**
     * 通过 flightDate + pCode 查询
     * @param flightDate
     * @param pCode
     * @return
     */
     CrewBackup get(String flightDate,String pCode);

    /**
     * 多条件查询
     * @param crewBackup
     * @return
     */
    List<CrewBackup> list(CrewBackup crewBackup);

    /**
     * 多条件模糊查询
     * @param crewBackup
     * @param page
     * @return
     */
    Page list(CrewBackup crewBackup, Page page);

}
